<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title></title>
    <link rel="stylesheet" href="{$Assets}layui/css/layui.css">
    <style type="text/css">
.layui-table-body{
    overflow: hidden;
}
ul li strong{
  margin-right: 10px;
}
    </style>
</head>
<body>
{include file="public/header" /}

<div style="width: 500px;margin: 150px auto;border:1px solid #dfdfdf; background: #fff;box-shadow: 5px 5px 5px #999;">
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
  <legend>核销</legend>
</fieldset>
<div class="demoTable" style="margin:0px auto 0;text-align: center;">
  <form class="layui-form" action="">
  <div class="layui-inline">
    <input class="layui-input" name="key" value="{$key}" id="demoReload" placeholder="" autocomplete="off" style="width: 350px;">
  </div>
  <button class="layui-btn" lay-submit="">搜索</button>
  </form>
</div>
<div style="width: 400px;margin: 10px auto 30px;">
{if condition="$key !=''"}

  <div class="layui-col-md6" style="float: none;width: 100%;">
      <div class="layui-card">
        <div class="layui-card-header" style="padding-top: 15px;"><h2><strong>订单详情</strong></h2></div>
        <div class="layui-card-body">
          <ul>
            <li><strong>订单号:</strong>{$order.orderid}</li>
            <li><strong>下单时间:</strong>{$order.ordertime}</li>
            <li><strong>状态:</strong>{$order.state_l}</li>
            <li><strong>用户:</strong>{$order.user}</li>
            <li><strong>商品:</strong>{$order.shoptitle}</li>
            <li><strong>商品类型:</strong>{$order.type_l}</li>
            <li><strong>费用:</strong>{$order.pay_l}</li>
            <li><strong>卡密:</strong>{$order.key}</li>
          </ul>
          <div style="text-align: center;margin:15px 0;">
            {if condition="$order.state =='1'"}
            <a class="layui-btn layui-btn-lg" href="check_state?id={$order.id}">核销订单</a>
            {/if}
            {if condition="$order.state =='0'"}
            <a class="layui-btn layui-btn-danger">此订单已使用</a>
            {/if}

            {if condition="$order.state =='p0'"}
            <a class="layui-btn layui-btn-danger">此订单未付款</a>
            {/if}
          </div>
        </div>
      </div>
    </div>

{/if}
</div>
</div>


<script src="{$Assets}layui/layui.js?t=1515376178709"></script>


{include file="public/footer"/}
</body>
</html>